package com.tz.farmer.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OperateInfoVo implements Serializable {


    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "生产地块")
    private String address;
    @ApiModelProperty(value = "责任人")
    private String people;
    @ApiModelProperty(value = "产品信息id")
    private Integer pInfoId;
    @ApiModelProperty(value = "区县")
    private String city;
    @ApiModelProperty(value = "操作类型")
    private String oType;
    @ApiModelProperty(value = "产品名称")
    private String pName;
    @ApiModelProperty(value = "投入品")
    private String inThing;
    @ApiModelProperty(value = "操作时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8" )
    private Date otime;
    @ApiModelProperty(value = "添加时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone="GMT+8" )
    private LocalDateTime createTime;

}
